# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-unicrypto
_pkgname=${pkgname#python-}
pkgver=0.0.9
pkgrel=5
pkgdesc='Unified interface for cryptographic libraries.'
arch=('any')
url='https://pypi.org/project/unicrypto/#files'
license=('MIT')
depends=('python' 'python-pycryptodomex')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('aa02dce27b2094b03a3d5c32573f862b57143dd8183cad362624a59f9378ced7c6ddcbe72b176399ea9a6ed292f98f9c7ae5db3549df4af42fafe70257ea21de')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

